<?php
/**
 * @file 
 * @package 
 * @subpackage 
 * @version $id: 0.1 UTF-8 2009-7-5 下午04:57:29 $
 * @author LD King (mifunny.info)
 * @copyright Copyright (c) 2007 - 2009 MiFunny China Inc. (http://mifunny.info)
 * 获得单个商品信息
 */

header("Content-Type:text/html;charset=UTF-8");
require_once '../config.inc.php';

//API系统参数
$topParamArr = array(
	'api_key' => APP_KEY,
	'method' => 'taobao.item.get',
	'format' => PARAM_FORMAT,
	'v' => PARAM_VERSION,
	'timestamp' => date('Y-m-d H:i:s')

);

//API用户参数
$userParamArr = array(
	'fields' => 'iid,title,nick,location,sku.properties',
	'iid' => '72b31835f55b6b6c35beab8c753989c1',
	'nick' => 'alipublic01'
);

$paramArr = $topParamArr + $userParamArr;

$result = Util::postResult($paramArr);
$result = Util::getXmlData($result);

var_dump($result);

?>